LassoScript Utility
Basics Browse Detail

[PDF_Read->PageSize]

Tag Link [PDF_Read->PageSize] Category PDF
Type Member Source Available Yes
Support Preferred Version 7.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LJAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Description

Returns the dimensions of the first page in the PDF as an array of width and height point values (Array: Width, Height). An optional integer parameter specifies the page number in the document to return the size of.

Syntax

[PDF_Read Variable->PageSize]

[PDF_Read Variable->(PageSize: Integer)]

Parameters

Optional Parameters
Integer Specifies the page number in the document to return the size of.

Examples

To determine the attributes of an existing PDF document:

The number of pages and the dimensions of an existing PDF document can be returned using the [PDF_Read->PageCount] and [PDF_Read->PageSize] tags on a defined [PDF_Read] variable.

[Var:'Old_PDF'=(PDF_Read:-File='/documents/somepdf.pdf')]Number of pages: [$Old_PDF->PageCount]
Page size: [$Old_PDF->(PageSize: 1)]

Related Tags

Category Tags

Substitution
[PDF_Barcode]
[PDF_Color]
[PDF_Doc]
[PDF_Font]
[PDF_Image]
[PDF_List]
[PDF_Table]
[PDF_Text]
Process
[PDF_Serve]
Member
[PDF_Barcode->GenerateChecksum]
[PDF_Barcode->GetBarHeight]
[PDF_Barcode->GetBarMultiplier]
[PDF_Barcode->GetBarWidth]
[PDF_Barcode->GetBaseline]
[PDF_Barcode->GetCode]
[PDF_Barcode->GetFont]
[PDF_Barcode->GetSize]
[PDF_Barcode->GetTextAlignment]
[PDF_Barcode->GetTextSize]
[PDF_Barcode->GetType]
[PDF_Barcode->SetBarHeight]
[PDF_Barcode->SetBarMultiplier]
[PDF_Barcode->SetBarWidth]
[PDF_Barcode->SetBaseline]
[PDF_Barcode->SetCode]
[PDF_Barcode->SetFont]
[PDF_Barcode->SetGenerateChecksum]
[PDF_Barcode->SetShowChecksum]
[PDF_Barcode->SetTextAlignment]
[PDF_Barcode->SetTextSize]
[PDF_Barcode->ShowChecksum]
[PDF_Barcode->ShowCode39StartStop]
[PDF_Barcode->ShowEANGuardBars]
[PDF_Doc->Add]
[PDF_Doc->AddBarcode]
[PDF_Doc->AddChapter]
[PDF_Doc->AddCheckBox]
[PDF_Doc->AddComboBox]
[PDF_Doc->AddHiddenField]
[PDF_Doc->AddImage]
[PDF_Doc->AddList]
[PDF_Doc->AddPage]
[PDF_Doc->AddParagraph]
[PDF_Doc->AddPasswordField]
[PDF_Doc->AddPhrase]
[PDF_Doc->AddRadioButton]
[PDF_Doc->AddRadioGroup]
[PDF_Doc->AddResetButton]
[PDF_Doc->AddSection]
[PDF_Doc->AddSelectList]
[PDF_Doc->AddSubmitButton]
[PDF_Doc->AddTable]
[PDF_Doc->AddText]
[PDF_Doc->AddTextArea]
[PDF_Doc->AddTextField]
[PDF_Doc->Arc]
[PDF_Doc->Circle]
[PDF_Doc->Close]
[PDF_Doc->ClosePath]
[PDF_Doc->CurveTo]
[PDF_Doc->DrawText]
[PDF_Doc->GetColor]
[PDF_Doc->GetFormat]
[PDF_Doc->GetHeaders]
[PDF_Doc->GetMargins]
[PDF_Doc->GetPageNumber]
[PDF_Doc->GetSize]
[PDF_Doc->InsertPage]
[PDF_Doc->Line]
[PDF_Doc->Rect]
[PDF_Doc->SetColor]
[PDF_Doc->SetFont]
[PDF_Doc->SetLineWidth]
[PDF_Doc->SetPageNumber]
[PDF_Font->GetColor]
[PDF_Font->GetEncoding]
[PDF_Font->GetFace]
[PDF_Font->GetFullFontName]
[PDF_Font->GetPSFontName]
[PDF_Font->GetSize]
[PDF_Font->GetSupportedEncodings]
[PDF_Font->IsTrueType]
[PDF_Font->SetColor]
[PDF_Font->SetEncoding]
[PDF_Font->SetFace]
[PDF_Font->SetSize]
[PDF_Font->SetUnderline]
[PDF_Font->TextWidth]
[PDF_List->Add]
[PDF_Table->Add]
[PDF_Table->GetAbsWidth]
[PDF_Table->GetAlignment]
[PDF_Table->GetBorderColor]
[PDF_Table->GetBorderWidth]
[PDF_Table->GetColumnCount]
[PDF_Table->GetPadding]
[PDF_Table->GetRowCount]
[PDF_Table->GetSpacing]
[PDF_Table->Insert]
[PDF_Table->Remove]
[PDF_Table->SetAlignment]
[PDF_Table->SetBorderColor]
[PDF_Table->SetBorderWidth]
[PDF_Table->SetPadding]
[PDF_Table->SetSpacing]
[PDF_Text->Add]